package com.linln.admin.activityticket;

import com.linln.common.vo.PageResult;
import com.linln.modules.activityticket.domain.ActivityType;
import com.linln.modules.activityticket.service.ActivityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.admin.activityticket
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.admin.activityticket
 * @Description: TODO
 * @date Date : 2020年12月21日 15:01
 */
@RestController
@RequestMapping("activityType")
public class ActivityTypeController {
    @Autowired
    private ActivityTypeService activityTypeService;


    @GetMapping
    public PageResult<ActivityType> getActivityType() {
        return new PageResult<>(activityTypeService.getActivityType());
    }
}
